package com.cskaoyan.mapper.goodsmapper;

import com.cskaoyan.bean.goods.GoodsCategory;
import com.cskaoyan.bean.goods.GoodsCategoryExample;
import com.cskaoyan.vo.goodsvo.Category_CategoryList_ChrildrenVo;
import com.cskaoyan.vo.goodsvo.Category_List_TotalVo;
import com.cskaoyan.vo.goodsvo.GoodsDetail_CategoryIdsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsCategoryMapper {
    long countByExample(GoodsCategoryExample example);

    int deleteByExample(GoodsCategoryExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(GoodsCategory record);

    int insertSelective(GoodsCategory record);

    List<GoodsCategory> selectByExample(GoodsCategoryExample example);

    GoodsCategory selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") GoodsCategory record, @Param("example") GoodsCategoryExample example);

    int updateByExample(@Param("record") GoodsCategory record, @Param("example") GoodsCategoryExample example);

    int updateByPrimaryKeySelective(GoodsCategory record);

    int updateByPrimaryKey(GoodsCategory record);

    GoodsDetail_CategoryIdsVo selectByPrimaryKey2(Integer categoryId);

    List<Category_List_TotalVo> selectByPidEql(int i);

    List<Category_CategoryList_ChrildrenVo> selectByPidEql2(int value);
}